
package cn.jason.util;

/**
 * 全局配置.
 * author: cnJason
 */
public class Config {
    //设置默认的userAgent
    public static String DEFAULT_USER_AGENT = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0";

    //最大的接收大小.
    public static int MAX_RECEIVE_SIZE = 1000 * 1000;
    //请求最长时间.
    public static long requestMaxInterval = 1000 * 60 * 2;
    //默认重试次数.
    public static int retry = 3;
    //等待最长时间.
    public static long WAIT_THREAD_END_TIME = 1000 * 60;
    /*最大连续重定向次数*/
    public static int MAX_REDIRECT = 2;

    public static int TIMEOUT_CONNECT = 3000;
    public static int TIMEOUT_READ = 10000;
    public static int MAX_RETRY = 20;

}
